package com.example.ibsp_demo.pojo.entity.message;

import java.time.LocalDateTime;

public class UserFeedback {

    private Integer feedbackId;   // 反馈记录唯一标识
    private Integer uid;          // 提交反馈的用户ID（可为空，支持匿名）
    private String feedbackType;  // 反馈类型（如“功能建议”“bug反馈”）
    private String feedbackContent; // 反馈内容
    private LocalDateTime submitTime; // 提交时间，默认当前时间

    // 无参构造
    public UserFeedback() {
    }

    // 有参构造
    public UserFeedback(Integer feedbackId, Integer uid, String feedbackType,
                        String feedbackContent, LocalDateTime submitTime) {
        this.feedbackId = feedbackId;
        this.uid = uid;
        this.feedbackType = feedbackType;
        this.feedbackContent = feedbackContent;
        this.submitTime = submitTime;
    }

    // Getter and Setter

    public Integer getFeedbackId() {
        return feedbackId;
    }

    public void setFeedbackId(Integer feedbackId) {
        this.feedbackId = feedbackId;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getFeedbackType() {
        return feedbackType;
    }

    public void setFeedbackType(String feedbackType) {
        this.feedbackType = feedbackType;
    }

    public String getFeedbackContent() {
        return feedbackContent;
    }

    public void setFeedbackContent(String feedbackContent) {
        this.feedbackContent = feedbackContent;
    }

    public LocalDateTime getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(LocalDateTime submitTime) {
        this.submitTime = submitTime;
    }

    // toString 方法
    @Override
    public String toString() {
        return "UserFeedback{" +
                "feedbackId=" + feedbackId +
                ", uid=" + uid +
                ", feedbackType='" + feedbackType + '\'' +
                ", feedbackContent='" + feedbackContent + '\'' +
                ", submitTime=" + submitTime +
                '}';
    }
}